package com.zhou;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.cloud.stream.annotation.StreamListener;
import org.springframework.stereotype.Component;

/**
 * DefaultMessageListener
 *
 * @author zhouxianfeng
 * @date 2021-5-26
 */
@Component
public class DefaultMessageListener {

    private static final Logger log = LoggerFactory.getLogger(DefaultMessageListener.class);

    @StreamListener(StreamClient.INPUT)
    public void processMyMessage(String message) {
        log.info("接收到消息：" + message);
    }
}